﻿artApp.controller('LoginController', [
    '$scope',
    '$http',
    '$location',
    'LoginService',
function ($scope, $http, $location, LoginService) {
    $scope.login = function () {
        return LoginService.login($scope.username, $scope.password).then(function (data) {
            $location.path('/');
        }, function (data) {
        });
    };
}]);